Skip to content

Skip PRs merged with a merge commit#49

Open
Phlogistique wants to merge 1 commit into
claude/pr-number-addressing-3njvdxfrom
claude/skip-merge-commits-3njvdx
Open

Skip PRs merged with a merge commit#49
Phlogistique wants to merge 1 commit into
claude/pr-number-addressing-3njvdxfrom
claude/skip-merge-commits-3njvdx

Conversation

@Phlogistique

Copy link
Copy Markdown
Collaborator

The action triggers on any merged PR, but its merge sequence assumes the squash shape: SQUASH_COMMIT~ as "target just before the merge" and an -s ours record of the squash. A real merge commit satisfies neither — and needs no fixing at all, since history isn't rewritten and stacked children keep correct diffs. Detect the second parent and bail out before touching anything; README note updated, new unit test tests/test_merge_commit_skip.sh covers it.

Rebase merges remain indistinguishable from squashes in the payload and are processed as before.

Stacked on #45.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JHvKryT4QUpHYdNq9YEQxX


Generated by Claude Code

The action triggers on any merged PR, but its merge sequence assumes the
squash shape: SQUASH_COMMIT~ as "target just before the merge" and an
-s ours record of the squash. A real merge commit satisfies neither -
and needs no fixing at all, since history is not rewritten and stacked
children keep correct diffs. Detect the second parent and bail out
before touching anything.

Rebase merges remain indistinguishable from squashes in the payload and
are processed as before.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01JHvKryT4QUpHYdNq9YEQxX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants